r = l + integer(the text of field "weave V width")
b = t + (integer(the text of field "weave H space") * 2) + integer(the text of field "weave H width")
repeat while r < (myCurrentImage.width + (integer(the text of field "weave V space") * 2))
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvVcolor)
t = t + (integer(the text of field "weave H space") * 2)
b = t + (integer(the text of field "weave H space") * 2) - integer(the text of field "weave H width")
end repeat
l = l + integer(the text of field "weave V space")
t = 0
r = l + integer(the text of field "weave V width")
b = t + (integer(the text of field "weave H space") * 2) - integer(the text of field "weave H width")
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvVcolor)
t = t + (integer(the text of field "weave H space") * 2)
b = t + (integer(the text of field "weave H space") * 2) - integer(the text of field "weave H width")
end repeat
l = l + integer(the text of field "weave V space")
t = -integer(the text of field "weave H space")
r = l + integer(the text of field "weave V width")
b = t + (integer(the text of field "weave H space") * 2) - integer(the text of field "weave H width")
end repeat
l = -integer(the text of field "weave V width")
t = -integer(the text of field "weave H space") + integer(the text of field "weave depth") - integer(the text of field "weave H width") - (integer(the text of field "weave H space") * 8)
r = l + integer(the text of field "weave V width")
b = t + integer(the text of field "weave H width")
repeat while r < (myCurrentImage.width + (integer(the text of field "weave V space") * 2))
repeat while b < (myCurrentImage.height + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvVShadow)
t = t + (integer(the text of field "weave H space") * 2)
b = t + integer(the text of field "weave H width")
end repeat
l = l + integer(the text of field "weave V space")
t = 0 + integer(the text of field "weave depth") - integer(the text of field "weave H width") - (integer(the text of field "weave H space") * 8)
r = l + integer(the text of field "weave V width")
b = t + integer(the text of field "weave H width")
repeat while b < (myCurrentImage.height + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvVShadow)
t = t + (integer(the text of field "weave H space") * 2)
b = t + integer(the text of field "weave H width")
end repeat
l = l + integer(the text of field "weave V space")
t = -integer(the text of field "weave H space") + integer(the text of field "weave depth") - integer(the text of field "weave H width") - (integer(the text of field "weave H space") * 8)
r = l + integer(the text of field "weave V width")
b = t + integer(the text of field "weave H width")
end repeat
t = -integer(the text of field "weave H width")
l = 0
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
repeat while r < (myCurrentImage.width + (integer(the text of field "weave V space") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHcolor)
l = l + (integer(the text of field "weave V space") * 2)
r = l + (integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")
end repeat
t = t + integer(the text of field "weave H space")
l = -integer(the text of field "weave V space")
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")
repeat while r < (myCurrentImage.width + (integer(the text of field "weave V space") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHcolor)
l = l + (integer(the text of field "weave V space") * 2)
r = l + (integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")
end repeat
t = t + integer(the text of field "weave H space")
l = 0
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")
end repeat
if (integer(the text of field "weave depth") = 0) or (integer(the text of field "weave depth") = (integer(the text of field "weave V space") * 2)) or (integer(the text of field "weave depth") = (integer(the text of field "weave V space") * 4)) or (integer(the text of field "weave depth") = (integer(the text of field "weave V space") * 6)) or (integer(the text of field "weave depth") = (integer(the text of field "weave V space") * 8)) then
nothing()
else
if integer(the text of field "weave depth") < integer(the text of field "weave V width") then
weaveSubVar = 0
HShadowBegin()
else
if (integer(the text of field "weave depth") >= integer(the text of field "weave V width")) and (integer(the text of field "weave depth") <= ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width"))) then
HShadowSpan()
else
if (integer(the text of field "weave depth") > ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") < (integer(the text of field "weave V space") * 2)) then
weaveSubVar = 0
HShadowEnd()
else
if (integer(the text of field "weave depth") > (integer(the text of field "weave V space") * 2)) and (integer(the text of field "weave depth") < ((integer(the text of field "weave V space") * 2) + integer(the text of field "weave V width"))) then
weaveSubVar = integer(the text of field "weave V space") * 2
HShadowBegin()
else
if (integer(the text of field "weave depth") >= ((integer(the text of field "weave V space") * 2) + integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") <= ((integer(the text of field "weave V space") * 4) - integer(the text of field "weave V width"))) then
HShadowSpan()
else
if (integer(the text of field "weave depth") > ((integer(the text of field "weave V space") * 4) - integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") < (integer(the text of field "weave V space") * 4)) then
weaveSubVar = integer(the text of field "weave V space") * 2
HShadowEnd()
else
if (integer(the text of field "weave depth") > (integer(the text of field "weave V space") * 4)) and (integer(the text of field "weave depth") < ((integer(the text of field "weave V space") * 4) + integer(the text of field "weave V width"))) then
weaveSubVar = integer(the text of field "weave V space") * 4
HShadowBegin()
else
if (integer(the text of field "weave depth") >= ((integer(the text of field "weave V space") * 4) + integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") <= ((integer(the text of field "weave V space") * 6) - integer(the text of field "weave V width"))) then
HShadowSpan()
else
if (integer(the text of field "weave depth") > ((integer(the text of field "weave V space") * 6) - integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") < (integer(the text of field "weave V space") * 6)) then
weaveSubVar = integer(the text of field "weave V space") * 4
HShadowEnd()
else
if (integer(the text of field "weave depth") > (integer(the text of field "weave V space") * 6)) and (integer(the text of field "weave depth") < ((integer(the text of field "weave V space") * 6) + integer(the text of field "weave V width"))) then
weaveSubVar = integer(the text of field "weave V space") * 6
HShadowBegin()
else
if (integer(the text of field "weave depth") >= ((integer(the text of field "weave V space") * 6) + integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") <= ((integer(the text of field "weave V space") * 8) - integer(the text of field "weave V width"))) then
HShadowSpan()
else
if (integer(the text of field "weave depth") > ((integer(the text of field "weave V space") * 8) - integer(the text of field "weave V width"))) and (integer(the text of field "weave depth") < (integer(the text of field "weave V space") * 8)) then
weaveSubVar = integer(the text of field "weave V space") * 6
HShadowEnd()
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
member(gSize & "x" & gSize, gCast).image.copyPixels(myCurrentImage, myCurrentImage.rect, myCurrentImage.rect)
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave depth") - weaveSubVar)
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + (integer(the text of field "weave depth") - weaveSubVar)
end repeat
t = t + integer(the text of field "weave H space")
l = -integer(the text of field "weave V space")
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave depth") - weaveSubVar)
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + (integer(the text of field "weave depth") - weaveSubVar)
end repeat
t = t + integer(the text of field "weave H space")
l = 0
b = t + integer(the text of field "weave H width")
r = l + (integer(the text of field "weave depth") - weaveSubVar)
end repeat
end
on HShadowSpan
t = -integer(the text of field "weave H width")
l = 0 + integer(the text of field "weave depth") - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width")
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + integer(the text of field "weave V width")
end repeat
t = t + integer(the text of field "weave H space")
l = -integer(the text of field "weave V space") + integer(the text of field "weave depth") - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width")
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + integer(the text of field "weave V width")
end repeat
t = t + integer(the text of field "weave H space")
l = 0 + integer(the text of field "weave depth") - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width")
end repeat
end
on HShadowEnd
t = -integer(the text of field "weave H width")
l = 0 + (integer(the text of field "weave depth") - weaveSubVar) - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width") - (integer(the text of field "weave depth") - weaveSubVar - ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")))
repeat while b < (myCurrentImage.height + (integer(the text of field "weave H space") * 2))
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + integer(the text of field "weave V width") - (integer(the text of field "weave depth") - weaveSubVar - ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")))
end repeat
t = t + integer(the text of field "weave H space")
l = -integer(the text of field "weave V space") + (integer(the text of field "weave depth") - weaveSubVar) - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width") - (integer(the text of field "weave depth") - weaveSubVar - ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")))
repeat while r < (myCurrentImage.width + (integer(the text of field "weave depth") * 2))
myCurrentImage.fill(rect(l, t, r, b), gWvHShadow)
l = l + (integer(the text of field "weave V space") * 2)
r = l + integer(the text of field "weave V width") - (integer(the text of field "weave depth") - weaveSubVar - ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")))
end repeat
t = t + integer(the text of field "weave H space")
l = 0 + (integer(the text of field "weave depth") - weaveSubVar) - integer(the text of field "weave V width") - (integer(the text of field "weave V space") * 8)
b = t + integer(the text of field "weave H width")
r = l + integer(the text of field "weave V width") - (integer(the text of field "weave depth") - weaveSubVar - ((integer(the text of field "weave V space") * 2) - integer(the text of field "weave V width")))